From 4a4125bcfc252deecaab4547c891495b8e0ee5af Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 15 Dec 2014 21:54:11 +0100 Subject: [PATCH] gdk_cairo_draw_from_gl - fix drawing with alpha on window scale > 1 The scissoring needs to take into account the window scale. --- gdk/gdkgl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c index af47d8c45d..2c554bfa45 100644 --- a/gdk/gdkgl.c +++ b/gdk/gdkgl.c @@ -527,8 +527,8 @@ gdk_cairo_draw_from_gl (cairo_t *cr, cairo_region_get_extents (clip_region, &clip_rect); - glScissor (clip_rect.x, FLIP_Y (clip_rect.y + clip_rect.height), - clip_rect.width, clip_rect.height); + glScissor (clip_rect.x * window_scale, FLIP_Y ((clip_rect.y + clip_rect.height) * window_scale), + clip_rect.width * window_scale, clip_rect.height * window_scale); n_quads = 0; n_rects = cairo_region_num_rectangles (clip_region); -- 2.30.2